home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / AppsToGo / AppsToGo.src / AppsToGo.Changes / DTS.Lib / Init.c.df < prev    next >
Encoding:
Text File  |  1993-06-18  |  2.3 KB  |  67 lines  |  [TEXT/MPS ]

  1. File #1: b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:Init.c
  2. File #2: a:Desktop Folder:AppsToGo.src:DTS.Lib:Init.c
  3.  
  4. Extra lines in 2nd before 13 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:Init.c"; Line Δ13; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:Init.c"; Line 13:20)
  5. /* You may incorporate this sample code into your applications without
  6. ** restriction, though the sample code has been provided "AS IS" and the
  7. ** responsibility for its operation is 100% yours.  However, what you are
  8. ** not permitted to do is to redistribute the source as "DSC Sample Code"
  9. ** after having made changes. If you're going to re-distribute the source,
  10. ** we require that you make it clear in the source that the code was
  11. ** descended from Apple Sample Code, but that you've made changes. */
  12.  
  13.  
  14.  
  15. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:Init.c"; Line 234:256; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:Init.c"; Line 242:265)
  16.             if (gWindowFormats) {
  17.                 for (i = (*gWindowFormats)->numChildren; i;) {
  18.                     wobj = GetChildHndl(gWindowFormats, --i);
  19.                     attr = mDerefWFMT(wobj)->attributes;
  20.                     if (!(attr & kwRuntimeOnlyDoc)) {
  21.                         if (attr & kwAutoNew) {
  22.                             err = NewDocumentWindow(&frHndl, mDerefWFMT(wobj)->sfType, true);
  23.                             if (err) break;
  24.                         }
  25.                     }
  26.                 }
  27.             }
  28.             else {
  29.                 if (!gNoDefaultDocument) {
  30.                     err = NewDocument(&frHndl, gAppWindowType, true);
  31.                     if (!err)
  32.                         if (frHndl)
  33.                             if (err = DoNewWindow(frHndl, nil, FrontWindow(), (WindowPtr)-1))
  34.                                 DisposeDocument(frHndl);
  35.                 }
  36.             }
  37.             if (!err)
  38.                 err = DoOpenApplication();
  39.  
  40.             err = DoOpenApplication();
  41.             if (!err) {
  42.                 if (gWindowFormats) {
  43.                     for (i = (*gWindowFormats)->numChildren; i;) {
  44.                         wobj = GetChildHndl(gWindowFormats, --i);
  45.                         attr = mDerefWFMT(wobj)->attributes;
  46.                         if (!(attr & kwRuntimeOnlyDoc)) {
  47.                             if (attr & kwAutoNew) {
  48.                                 err = NewDocumentWindow(&frHndl, mDerefWFMT(wobj)->sfType, true);
  49.                                 if (err) break;
  50.                             }
  51.                         }
  52.                     }
  53.                 }
  54.                 else {
  55.                     if (!gNoDefaultDocument) {
  56.                         err = NewDocument(&frHndl, gAppWindowType, true);
  57.                         if (!err)
  58.                             if (frHndl)
  59.                                 if (err = DoNewWindow(frHndl, nil, FrontWindow(), (WindowPtr)-1))
  60.                                     DisposeDocument(frHndl);
  61.                     }
  62.                 }
  63.             }
  64.  
  65.  
  66. *** EOF on both files at the same time ***
  67.